package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 订单关联设备对象 t_b_order_device
 * 
 * @author pspyy
 * @date 2022-03-09
 */
public class TBOrderDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;
    //设备名称
    @Excel(name = "设备名称")
    private String deviceName;
    //设备编码
    @Excel(name = "设备编码")
    private String deviceCode;
    //客户名称
    @Excel(name = "客户名称")
    private String customerName;
    /** 设备id */
    private Long deviceId;

    /** 设备状态;0:就绪；1：在线；2：离线；3：锁定 */
    @Excel(name = "设备状态",readConverterExp = "0=就绪,1=在线,2=离线,3=待锁定,4=锁定")
    private String deviceStatue;

    /** 锁定时间 */
    @Excel(name = "锁定时间")
    private String lockTime;

    /** 离线时间 */
    //@Excel(name = "离线时间")
    private String outTime;

    /** gps */
    @Excel(name = "gps")
    private String gps;
    //客户id
    private Long customerId;
    //产品类型
    private String productTypeName;
    // 图标
    private String imagePath;
    //出售时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String sellTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceStatue(String deviceStatue) 
    {
        this.deviceStatue = deviceStatue;
    }

    public String getDeviceStatue() 
    {
        return deviceStatue;
    }
    public void setLockTime(String lockTime) 
    {
        this.lockTime = lockTime;
    }

    public String getLockTime() 
    {
        return lockTime;
    }
    public void setGps(String gps) 
    {
        this.gps = gps;
    }

    public String getGps() 
    {
        return gps;
    }


    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNum", getOrderNum())
            .append("deviceId", getDeviceId())
            .append("deviceStatue", getDeviceStatue())
            .append("lockTime", getLockTime())
            .append("gps", getGps())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("customerName", getCustomerName())
            .append("deviceName", getDeviceName())
            .append("deviceCode", getDeviceCode())
            .append("customerId", getCustomerId())
            .toString();
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getSellTime() {
        return sellTime;
    }

    public void setSellTime(String sellTime) {
        this.sellTime = sellTime;
    }

    public String getProductTypeName() {
        return productTypeName;
    }

    public void setProductTypeName(String productTypeName) {
        this.productTypeName = productTypeName;
    }
}
